package team.shixi.houtai.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import team.shixi.houtai.entity.Goods;

import java.util.List;
import java.util.Map;

/**
 * @author Zhangrt
 * @Description
 * @create 2023-01-10 17:01
 */
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {
    @Select("select * from goodsview where amount > 0 and status = 1 ")
    Page<Goods> selectWxAll(Page<Goods> page, LambdaQueryWrapper<Goods> queryWrapper);

    @Select("select * from goodsview ")
    Page<Goods> selectAllPage(Page<Goods> page, LambdaQueryWrapper<Goods> queryWrapper);
}
